from timeit import Timer

import sys


def Problem():
    """2520 is the smallest number that can be divided by each 
    of the numbers from 1 to 10 without any remainder.

    What is the smallest number that is evenly divisible 
    by all of the numbers from 1 to 20. """

    # Brute force
    primes = range(2,20)
    
    # Loop through increments of 20, since number needs to be
    # divisible by 20 and all numbers below
    x = 0
    divisible = False
    while not divisible:
        x += 20
        divisible = True
        for p in primes:
            divisible = divisible and x % p == 0  
        
    print "Answer for Problem 5 = %d" % (x,)




    
if __name__ == "__main__":
    t = Timer(setup='from __main__ import Problem', stmt='Problem()').timeit(1)
    print "Execution time = %0.3f seconds" %(t,)